package com.xuxin.baby.contract;

import com.xuxin.baby.bean.UploadFilesBean;
import com.xuxin.baby.presenter.ChildGreatRecordPresenter;
import com.xuxin.baby.presenter.ChildSicknessRecordPresenter;

import java.util.List;

import okhttp3.MultipartBody;

/**
 * Created by xu_xin
 * Created on 2020/10/22 0022
 * 记录大事记和病历
 */
public interface ChildSicknessRecordContract {

    interface Model {

        void uploadDiagnosis(ChildSicknessRecordPresenter presenter, String tenantId, String token,
                             String objectId, String objectName, String objectField, List<MultipartBody.Part> parts);

        void uploadInspection(ChildSicknessRecordPresenter presenter, String tenantId, String token,
                              String objectId, String objectName, String objectField, List<MultipartBody.Part> parts);

        void uploadOther(ChildSicknessRecordPresenter presenter, String tenantId, String token,
                         String objectId, String objectName, String objectField, List<MultipartBody.Part> parts);

    }

    interface View extends BaseContract.view {

        void onDiagnosisSuccess(UploadFilesBean uploadFilesBean);

        void onInspectionSuccess(UploadFilesBean uploadFilesBean);

        void onOtherSuccess(UploadFilesBean uploadFilesBean);
    }

    interface Presenter extends BaseContract.presenter {

        void uploadDiagnosis(String tenantId, String token,
                             String objectId, String objectName, String objectField, List<MultipartBody.Part> parts);

        void uploadInspection(String tenantId, String token,
                              String objectId, String objectName, String objectField, List<MultipartBody.Part> parts);

        void uploadOther(String tenantId, String token,
                         String objectId, String objectName, String objectField, List<MultipartBody.Part> parts);

        void onDiagnosisSuccess(UploadFilesBean uploadFilesBean);

        void onInspectionSuccess(UploadFilesBean uploadFilesBean);

        void onOtherSuccess(UploadFilesBean uploadFilesBean);
    }
}